package cn.cloud.all.security.oauth2.provider.token;

import cn.cloud.all.security.core.AuthenticationException;
import cn.cloud.all.security.oauth2.common.OAuth2AccessToken;
import cn.cloud.all.security.oauth2.common.exceptions.InvalidTokenException;
import cn.cloud.all.security.oauth2.provider.OAuth2Authentication;

public interface ResourceServerTokenServices {

    OAuth2Authentication loadAuthentication(String accessToken) throws AuthenticationException, InvalidTokenException;

    OAuth2AccessToken readAccessToken(String accessToken);

}